package com.config;

import com.service.UserService;
import com.service.impl.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class MyConfig {

    @Bean
    public UserService newUserService(){
        return new UserServiceImpl();
    }
}
